/**
 * 
 */
package com.vcaresolution.logistic.dao;

import java.util.List;

import org.hibernate.Session;
import org.springframework.stereotype.Repository;

import com.vcaresolution.logistic.pojo.Businessprocess;

/**
 * The <code>ExportDAOImpl</code> provides implementation methods for
 * managing Export related functionality Like WebServiceProcess in <b>LEADER</b> application.
 *
 * @author Kushal Shah
 * @version 1.0
 * @since Shipsoft 1.0
 * @category Interface
 * @see ExportDAO
 */
@Repository
public class ExportDAO extends BaseDAO{

	/* (non-Javadoc)
	 * @see web.clerk.webapp.leader.dao.ExportDAO#getWebServiceProcesses()
	 */
	@SuppressWarnings("unchecked")
	public List<Businessprocess> getBusinessProcesses() {
		
			try
			{
				Session session = sessionFactory.openSession();
				return session.createCriteria(Businessprocess.class).list();
				
			}
			catch (Exception e) 
			{
				e.printStackTrace();
			}
			return null;
		
	}

}
